home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_05 / allison / person3.h < prev    next >
C/C++ Source or Header  |  1995-03-12  |  540b  |  27 lines

  1. LISTING 21 - A well-behaved version of Listing 19
  2. // person3.h
  3. #include "date5.h"
  4. #include "bool.h"
  5.  
  6. class ostream;
  7.  
  8. class Person
  9. {
  10.     friend ostream & operator<<(ostream &, const Person &);
  11.  
  12. public:
  13.     Person();
  14.     Person(const char *,const char *,const Date &,const char *);
  15.     Person(const Person &);             // NEW
  16.     ~Person();
  17.     Person& operator=(const Person &);  // NEW
  18.     bool operator==(const Person &) const;
  19.  
  20. private:
  21.     char * last;
  22.     char * first;
  23.     Date birth;
  24.     char * ssn;
  25. };
  26.  
  27.